﻿@model Janus.Mes.VO.SysConfigVO

@{
    Layout = null;
    var i = 1;
    ViewBag.ViewTitle = "详情-自定义抽样";
}
<style>
    .MyPanel p {
        height: 20px;
    }
</style>
<div class="pageContent">
    <div class="pageFormContent" layouth="56">
        <div class="MyPanel">
            <b class="b1"></b><b class="b2 d1"></b><b class="b3 d1"></b><b class="b4 d1"></b>
            <div class="b d1 k">
                <div class="Title">自定义抽样</div>
                <div class="Content">
                    <p>
                        <label>
                            抽样表编号：
                        </label>
                        SD001
                    </p>
                    <p>
                        <label>
                            抽样表名称：
                        </label>
                        抽样表名称
                    </p>
                    <p style="width:100%;height:35px;">
                        <label>
                            备注：
                        </label>
                        ABCD
                    </p>

                </div>
            </div>
            <b class="b4b d1"></b><b class="b3b d1"></b><b class="b2b d1"></b><b class="b1b"></b>
        </div>
        <div class="MyPanel">
            <b class="b1"></b><b class="b2 d1"></b><b class="b3 d1"></b><b class="b4 d1"></b>
            <div class="b d1 k">
                <div class="Title">工序详情</div>
                <div class="Content">
                    <table class="treetalbe list " width="100%" layouth="500">
                        <thead>
                            <tr class="header">
                                <th style="width: 150px">检验水平编号</th>
                                <th>检验水平</th>
                                <th>严格程度编号</th>
                                <th>严格程度</th>
                                <th>AQL值</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr class="selected" target="SampleDefin_id" rel="1" data-id="1" onclick="ShowDrives('GX0001')">
                                <td>GX0001</td>
                                <td>一般水平(I)</td>
                                <td>10</td>
                                <td>正常检验</td>
                                <td>0.065</td>
                            </tr>
                            <tr target="SampleDefin_id" rel="2" data-id="2" onclick="ShowDrives('GX0002')">
                                <td>GX0002</td>
                                <td>一般水平(II)</td>
                                <td>11</td>
                                <td>加严检验</td>
                                <td>0.01</td>
                            </tr>

                        </tbody>

                    </table>

                </div>
            </div>
            <b class="b4b d1"></b><b class="b3b d1"></b><b class="b2b d1"></b><b class="b1b"></b>
        </div>
        <div class="MyPanel drives" id="GX0001">
            <b class="b1"></b><b class="b2 d1"></b><b class="b3 d1"></b><b class="b4 d1"></b>
            <div class="b d1 k">
                <div class="Title">检验水平-GX0001</div>
                <div class="Content">
                    <table class="treetable list " width="100%" layouth="500">
                        <thead>
                            <tr class="header">
                                <th style="width:50px">ID</th>
                                <th>批量下限</th>
                                <th>批量上限</th>
                                <th>抽样数</th>
                                <th>充收数</th>
                                <th>拒收数</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr class="header" target="SampleDefin_id" rel="1" data-id="1">
                                <td style="width:50px">1</td>
                                <td>2</td>
                                <td>9</td>
                                <td></td>
                                <td></td>
                                <td></td>
                            </tr>
                            <tr class="header" target="SampleDefin_id" rel="2" data-id="2">
                                <td style="width:50px">2</td>
                                <td>9</td>
                                <td>15</td>
                                <td></td>
                                <td></td>
                                <td></td>
                            </tr>

                            <tr class="header" target="SampleDefin_id" rel="3" data-id="3">
                                <td style="width:50px">3</td>
                                <td>15</td>
                                <td>8</td>
                                <td></td>
                                <td></td>
                                <td></td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <b class="b4b d1"></b><b class="b3b d1"></b><b class="b2b d1"></b><b class="b1b"></b>
        </div>
        <div class="MyPanel drives" id="GX0002" style="display:none">
            <b class="b1"></b><b class="b2 d1"></b><b class="b3 d1"></b><b class="b4 d1"></b>
            <div class="b d1 k">
                <div class="Title">检验水平-GX0002</div>
                <div class="Content">
                    <table class="treetable list " width="100%" layouth="500">
                        <thead>
                            <tr class="header">
                                <th style="width:50px">ID</th>
                                <th>批量下限</th>
                                <th>批量上限</th>
                                <th>抽样数</th>
                                <th>充收数</th>
                                <th>拒收数</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr class="header" target="SampleDefin_id" rel="1" data-id="1">
                                <td style="width:50px">1</td>
                                <td>3</td>
                                <td>7</td>
                                <td></td>
                                <td></td>
                                <td></td>
                            </tr>
                            <tr class="header" target="SampleDefin_id" rel="2" data-id="2">
                                <td style="width:50px">2</td>
                                <td>4</td>
                                <td>15</td>
                                <td></td>
                                <td></td>
                                <td></td>
                            </tr>

                            <tr class="header" target="SampleDefin_id" rel="3" data-id="3">
                                <td style="width:50px">3</td>
                                <td>2</td>
                                <td>6</td>
                                <td></td>
                                <td></td>
                                <td></td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <b class="b4b d1"></b><b class="b3b d1"></b><b class="b2b d1"></b><b class="b1b"></b>
        </div>
        @Html.Partial("Operation", Model)
    </div>
</div>
<script>
    function ShowDrives(currentId)
    {
        $(".drives").hide();
        $("#" + currentId).show();
    }
</script>
